package com.rambler.fileupload.controller;

import com.aliyun.oss.model.Bucket;
import com.rambler.common.response.CommonResponse;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author suhao
 */
@RestController
public class OSSController {

    @PostMapping("/createBucket")
    public CommonResponse<String> uploadTest() {

        return CommonResponse.success("success");
    }

    @GetMapping("/buckets")
    public CommonResponse<List<Bucket>> getBuckets() {
        return null;
    }
}
